<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:rich="http://java.sun.com/jsf/composite/jquery">

<h:head>
<ui:include src="topo.xhtml"></ui:include>
<script src="js/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="../js/ajax.js"></script>
	<script src="../js/jquery.maskedinput-1.3.min.js"></script>
	<script src="../js/script_cadastro.js"></script>


<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style_cadastro_curso.css" rel="stylesheet" type="text/css" />
<link href="../css/style_cadastro_professor.css" rel="stylesheet" type="text/css" />
	
<script type="text/javascript">

//LIMPA UM FORMULARIO
function limparFormulario(parametro)
{
	document.getElementById(parametro).reset();	
}
</script>

</h:head>
<h:body>
<h:panelGroup rendered="#{gerenciador_equipamento.usuario.permicao== 'administrador'}">
<div class="conteudo">
      <h:form id="form">
      <p:growl showDetail="true"></p:growl>
		<div class="conteudo_limite">
			<div class="titulo">

				<img alt="" src="../css/img/school.png" />

				<p>Obra / Novo</p>

				<div class="clr"></div>

			</div>

			<ul class="botoes_cadastro">
			    <li id="link_cancel"><h:commandButton  styleClass="ajustaBotao" onclick="limparFormulario('form');"  type="button"  action="#{gerenciador_equipamento.limpar}" image="../css/img/icon_cancel.png"/> <h:outputLabel value="Cancelar"/></li>
				<li id="link_save"><h:commandButton  styleClass="ajustaBotao"  type="submit" image="../css/img/icon_save_01.png"/> <h:outputLabel value="Salvar e Sair"/></li>
				<li id="link_save2"><h:commandButton  styleClass="ajustaBotao" action="#{gerenciador_equipamento.cadastrar}" type="submit" image="../css/img/icon_save_new.png"/> <h:outputLabel value="Salvar"/></li>		
			</ul>

			<div class="clr"></div>

		</div>
			<div class="conteudo_limite">


				<div class="left_conteudo_limite">

					<h3>Informações Gerais</h3>

					<div class="cadastro_professor form">
					
					<strong><h:outputLabel value="Nome da Obra:" styleClass="wh30pc" /></strong>
                    <div class="clr"></div>

                    <h:inputText value="#" id="nome" styleClass="wh50pc"/>
                    <div class="clr"></div>
                    
                    <strong><h:outputLabel value="Nome do Autor :" styleClass="wh30pc" /></strong>
                    <strong><h:outputLabel value="Direção :" styleClass="wh30pc" /></strong>
                    <div class="clr"></div>
                    
                   <h:selectOneMenu value="#{gerenciador_equipamento.status}" style="width:30%;height:28px;" >
							<f:selectItem  itemLabel=" .:Selecione o Status:. "  />
							<f:selectItem  itemLabel="Disponivel" itemValue="Disponivel" />
							<f:selectItem  itemLabel="Indisponivel" itemValue="Indisponivel" />
							<f:selectItem  itemLabel="Manutenção" itemValue="Manutenção" />
					</h:selectOneMenu>
                   
                    <h:inputText value="#" id="direcao" styleClass="wh26pc"/>
                   
                    <div class="clr"></div>
                    
                    <strong> <h:outputLabel value="Gênero :" styleClass="wh30pc"/></strong>
                   	<strong><h:outputLabel value="Série :" styleClass="wh30pc"/></strong>
					
					<div class="clr"></div>
                    		
					<h:inputText value="#" id="genero" styleClass="wh26pc"/>
                       
					<h:inputText value="#" id="serie" styleClass="wh26pc"/>
					
				    <div class="clr"></div>
                    
                     <strong> <h:outputLabel value="Sinopse :" styleClass="wh30pc"/></strong>
					
					<div class="clr"></div>
                    
					<h:inputTextarea id="sinopse" styleClass="wh50pc"></h:inputTextarea>
					
					<div class="clr"></div>
					
					<strong> <h:outputLabel value="Comentários :" styleClass="wh30pc"/></strong>
					
					<div class="clr"></div>
                    
					<h:inputTextarea id="comentarios" styleClass="wh50pc"></h:inputTextarea>
					
					<div class="clr"></div>
					
					<br />
                    
                   </div>
				</div>
				<div class="clr"></div>
				<br />
			</div>
		</h:form>
		</div>
		</h:panelGroup>
</h:body>
<ui:include src="rodape.xhtml"></ui:include>
</html>
